home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / telecomm / t100.zoo / makefile < prev    next >
Makefile  |  1991-09-21  |  2KB  |  78 lines

  1. # makefile for t100    Wed Sep 11 00:17:06 1991
  2. #
  3. # $Id: makefile.,v 1.0 1991/09/12 21:15:04 rosenkra Exp $
  4. #
  5. # $Log: makefile.,v $
  6. # Revision 1.0  1991/09/12  21:15:04  rosenkra
  7. # Initial revision
  8. #
  9. #
  10. # this was originally set up for MiNT so i left it that way. note the use
  11. # of -nostdlib in the link to get at mint in my setup. this works! LIBS
  12. # must appear at the end of the list, however. works with gmake 3.60. note
  13. # the -z for gcc to have stderr go to file "compile.err".
  14. #
  15. # tested with: gcc v1.40, mintlib10, 32-bit
  16. #
  17. # for -mshort, LIBS will need to be changed to gnu16 and iio16.
  18. #
  19. # configuration:
  20. #
  21. # DEBUG            debugging mode
  22. # EMUL_VT100        set to have it do ANSI/vt100 (much of it, not all)
  23. # SET_RS232_INIT    for TOS 1.2 and up. does Rsconf and uses return val
  24. # SWAP_DEL_AND_BS    interchanges del and backspace keys if defined
  25. # USE_FONTS        does bold, underline, and reverse. also resets sys
  26. #            font. only when EMUL_VT100 is defined. uses line A
  27. #            to get font header ptr. resets sys font on exit.
  28. #
  29.  
  30. CC        = gcc
  31. DEBUG        = #-DDEBUG
  32. DEFINES        = -DEMUL_VT100 -USET_RS232_INIT -USWAP_DEL_AND_BS -DUSE_FONTS
  33. CFLAGS        = -v -Wall -z -Ig:/mint/include $(DEBUG) $(DEFINES)
  34. LDSPECIAL    = -nostdlib g:/mint/lib/crt0.o
  35. LDFLAGS        = -v -Wall -z -Lg:/mint/lib $(LDSPECIAL)
  36. LIBS32        = -lgnu -liio
  37. LIBS16        = -lgnu16 -liio16
  38. # if -mshort, use LIBS16...
  39. LIBS        = $(LIBS32)
  40.  
  41. TARGET        = t100.ttp
  42.  
  43. OBJS        = t100.o cookie.o config.o vt100.o bold.o roman.o uline.o\
  44.         normal.o reverse.o font.o
  45.  
  46.  
  47.  
  48. $(TARGET):    $(OBJS)
  49.         $(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(LIBS)
  50.  
  51.  
  52.  
  53. t100.o:        t100.h t100.c
  54.         $(CC) $(CFLAGS) -c -o t100.o t100.c
  55.  
  56. cookie.o:    t100.h cookie.c
  57.         $(CC) $(CFLAGS) -c -o cookie.o cookie.c
  58.  
  59. config.o:    t100.h config.c
  60.         $(CC) $(CFLAGS) -c -o config.o config.c
  61.  
  62. vt100.o:    t100.h vt100.c
  63.         $(CC) $(CFLAGS) -c -o vt100.o vt100.c
  64.  
  65. font.o:        font.c
  66. roman.o:    roman.c roman.h
  67. bold.o:        bold.c bold.h
  68. uline.o:    uline.c uline.h
  69. reverse.o:    reverse.c reverse.h
  70. normal.o:    normal.c
  71.  
  72.  
  73. clean:
  74.         rm $(OBJS)
  75.  
  76. clobber:    clean
  77.         rm t100.ttp
  78.